#!/usr/bin/env python3
"""
Setup script for ComfyUI-HunyuanWorld
"""

from setuptools import setup, find_packages
import os

# Read the README file
def read_readme():
    with open("README.md", "r", encoding="utf-8") as fh:
        return fh.read()

# Read requirements
def read_requirements():
    with open("requirements.txt", "r", encoding="utf-8") as fh:
        return [line.strip() for line in fh if line.strip() and not line.startswith("#")]

setup(
    name="comfyui-hunyuanworld",
    version="1.0.0",
    author="ComfyUI-HunyuanWorld Contributors",
    author_email="",
    description="ComfyUI custom nodes for Hunyuan3D - Complete 3D generation suite",
    long_description=read_readme(),
    long_description_content_type="text/markdown",
    url="https://github.com/A043-studios/ComfyUI_HunyuanWorldnode",
    packages=find_packages(),
    classifiers=[
        "Development Status :: 4 - Beta",
        "Intended Audience :: Developers",
        "Intended Audience :: Science/Research",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: 3.9",
        "Programming Language :: Python :: 3.10",
        "Programming Language :: Python :: 3.11",
        "Topic :: Scientific/Engineering :: Artificial Intelligence",
        "Topic :: Multimedia :: Graphics :: 3D Modeling",
    ],
    python_requires=">=3.8",
    install_requires=read_requirements(),
    extras_require={
        "dev": [
            "pytest>=6.0",
            "black>=21.0",
            "flake8>=3.8",
            "isort>=5.0",
        ],
        "full": [
            "gradio>=3.0.0",
            "fastapi>=0.68.0",
            "uvicorn>=0.15.0",
        ]
    },
    keywords="comfyui, hunyuan3d, 3d-generation, diffusion, ai, machine-learning",
    project_urls={
        "Bug Reports": "https://github.com/A043-studios/ComfyUI_HunyuanWorldnode/issues",
        "Source": "https://github.com/A043-studios/ComfyUI_HunyuanWorldnode",
        "Documentation": "https://github.com/A043-studios/ComfyUI_HunyuanWorldnode#readme",
    },
)
